<?php echo form_open('website/hoatdong'); ?>
    <div class="col-md-2 col-xs-height navshadow">
    <ul class="nav nav-sidebar" >
      <div class="image">
        <img src="<?php echo base_url("public/images/sidebar_logo.jpg");?>" alt="logo_image" width="150px" height="150px" class="img-circle">
      <h3>Trung tam</h3>
      </div>
      <li><a href="#">Templet 1</a></li>
      <li><a href="#">Templet 2</a></li>
      <li><a href="#">Templet 3</a></li>
      <li><a href="#">Templet 4</a></li>
      <li><a href="#">Templet 5</a></li>
      <li><a href="#">Templet 6</a></li>
      <li><a href="#">Templet 7</a></li>
      <li><a href="#">Templet 8</a></li>
      <li><a href="#">Templet 9</a></li>
      <li><a href="#">Templet 10</a></li>
    </ul>
    </div>
    <div class="col-md-10 col-xs-height"> 
        <div class="breadcrumbs" style="margin-top: 3%; margin-bottom: 1%;">
          <ul>
              <li><a href="<?php echo base_url("index.php/website/home");?>"><span class="glyphicon glyphicon-home"></span> Trang chủ</a></li>
              <li><a href="<?php echo current_url();?>"><span class="glyphicon glyphicon-file"></span> Hoạt động</a></li>
          </ul>

        </div>
        <?php foreach ($activity as $item): ?>
        <div class="highlight">
            <div class="row">
                    <h3><?php echo $item['name'] ?></h3>
                    <p class="text-muted" style="font-size: 12px;">Ngày bắt đầu: <?php echo date('H:i d/m/Y', strtotime($item['startday']));
        echo "&nbsp&nbsp&nbsp&nbsp";
            ?> <t> Ngày kết thúc: <?php echo date('H: d/m/Y', strtotime($item['endday'])); ?></p>
                        <p class="text-muted" style="font-size: 12px;">Số lượt view: <?php echo $item['view']; ?> </p>
                        <hr>
                        </div>
                        <div class="row">
                            <div class="col-md-1">
                                <a href="#"><img src="" class="avatar"></a>
                            </div>
                            <div class="col-md-11">

                            </div>
                        </div>
                        <div class="row content">
                            <p>
    <?php echo $item['detail'] ?>
                            </p>
                        </div>
                </div>
<?php endforeach; ?>
            <div style="float: left;color: red;width: 100px;height:30px;margin-left: 400px ">
                <h4 style="color: royalblue"><?php echo anchor("website/hoatdong/addData", "add activity");
?></h4>
            </div>
    </div>
 